import { Component } from "ag-grid-community";
import { createRouter,createWebHashHistory } from "vue-router";

import Product from "@/coms/Product.vue";
import Home from "@/coms/Home.vue";
import Test from "@/coms/Test.vue";
import Login from "@/coms/Login.vue";
import Table from "@/coms/Table.vue";
import Aggrid from "@/coms/Aggrid.vue";
import ListProduct from "@/coms/ListProduct.vue";
import Ck from "@/coms/Ck.vue";


const routes = [




  {
    path: '/ck',
    name: 'Ck',
    component: Ck
  },
  {
    path: '/listproduct',
    name: 'ListProduct',
    component: ListProduct
  },
  {
    path: '/table',
    name: 'Table',
    component: Table
  },
  {
    path: '/login',
    name: 'Login',
    component: Login
  },
  {
    path: '/test',
    name: 'Test',
    component: Test
  },
  {
    path: '/product',
    name: 'Product',
    component: Product
  },
  {
    path: '/aggrid',
    name: 'Aggrid',
    component: Aggrid
  },
  {
    path: '/',
    component: Home
  },

]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router